<?php
/**
 *
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */

$cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework');
?>
<!DOCTYPE html>
<html lang="por">
<head>    
	<?php echo $this->Html->charset(''); ?>
	<title>
		<?php echo $cakeDescription ?>:
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');
		
		echo $this->Html->css('cake.generic');		
	    echo $this->Html->css('redmond/jquery-ui-1.8.13.custom.css');

		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
		echo $this->Html->script('jquery-1.7.2.min');
		echo $this->Html->script('jquery-ui-1.8.21.custom.min');
		
		
		
	?>		
</head>
<body>
<?php 
	$usuario = $this->Session->read();	
?>
   <div id="container" class="ui-widget">
		<div id="header" class="ui-widget-header ui-corner-all">
			<h1>Baby Growth</h1>
			<div style="float:right;margin-right:50px"><a href="/babygrowth/users/logout">Sair</a></div>
			<div style="float:right;margin-right:50px">Usuário: <?php echo $usuario['Auth']['User']['nome']; ?></div>			
		</div>
		<div id="content-widget" class="ui-widget-content ui-corner-all" style="clear:left">
			<div id="menu">
			    <ul id="menuacoes">
					<li><?php echo $this->Html->link('Cadastrar criança', array('controller' => 'bebes', 'action' => 'add')); ?></li>
					<li><?php echo $this->Html->link('Crianças', array('controller' => 'bebes', 'action' => 'index')); ?> </li>
					<li><?php echo $this->Html->link('Registrar Medição', array('controller' => 'medicos', 'action' => 'add')); ?></li>			
					<li><?php echo $this->Html->link('Dados do usuário', array('controller' => 'users', 'action' => 'edit', $usuario['Auth']['User']['id'])); ?></li>					
					<li><?php echo $this->Html->link('Visualizar Medições', array('controller' => 'medicos', 'action' => 'index')); ?></li>					
				</ul>
			</div>
			<div class="ui-widget-content ui-corner-all" id="content">
			    <?php echo $this->Session->flash(); ?>			    
			    <?php echo $this->fetch('content'); ?>
			</div>
		</div>
		<div id="footer">
		    BabyGrowth - &copy; Todos os direitos reservados
	    </div>
   </div>
	<?php echo $this->element('sql_dump'); ?>
	<script type="text/javascript">
	    $(document).ready(function(){ 	    	 
	        //$("#menuacoes").menu();
	       
	    });
	</script>
</body>
</html>
